package com.liao.mybatis.dao;

import com.liao.mybatis.pojo.TbUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMapper {

    @Select("select * from user where id=#{id}")
    TbUser getUserById(Integer id);

    List<TbUser> findAll();
}
